<!DOCTYPE html>
<html>
<head>
	<meta charset=utf-8 />
	<title>File API</title>
	<script type="text/javascript" src="../../jquery/jquery-1.6.1.min.js"></script>
	<script type="text/javascript" src="web.js"></script>
	<script type="text/javascript" src="MP3Stream.js"></script>
</head>
<body>
<input type=file>
<script type="text/javascript">
$(":file").change(function(){

	var file = this.files[0];
	
	var mp3Stream = new com.misisipi.audio.MP3Stream();
	mp3Stream.onload = function(){
		console.log(mp3Stream.readUTFBytes(3));
		console.log(mp3Stream.readUnsignedByte() + "." + mp3Stream.readUnsignedByte() );
	}
	mp3Stream.onerror = function(e){
			alert(e.message);
	}
	mp3Stream.open(file);
});
</script>
</body>
</html>